home *** CD-ROM | disk | FTP | other *** search
- /*
- Family Tree Rexx Script FTX
- Copyright (C) 1996 by <Nils Meier>
- Please send comments to meier2@athene.informatik.uni-bonn.de
- <This script displays an ordered list of the last names of
- all persons in the actual family tree. Feel free to take this
- as a template for new scripts !>
- */
-
- /* Params */
- namewidth=30
-
- /* Display Header */
- SAY("Alphabetical List. Today's date :"||DATE())
- SAY(.............................................)
-
- /* Sort Mankind by Name,FirstName */
- rc=SORT("N,F")
-
- /* Display persons in tree */
- rc=FIRST()
-
- DO UNTIL RC=0
-
- /* Get Name + FirstName and fit to static length */
- result=getName()
- firstname=getFirstName()
- IF LENGTH(firstname)>0 THEN result=result||','||firstname
- IF LENGTH(result)<namewidth THEN
- result=result||COPIES(' ',namewidth-LENGTH(result))
- ELSE
- result=LEFT(result,namewidth)
-
- /* Get Dates */
- birth=getBirthDate()
- IF length(birth)>0 THEN result=result||'*'||birth||' '
- death=getDeathDate()
- IF length(death)>0 THEN result=result||'+'||death
-
- /* O.K. output */
- SAY(result)
-
- /* Next one */
- rc=NEXT()
- END
-
- /* Done */
-
- RETURN